<?php

namespace app\validate\api\housing;

use think\Validate;

class HousingSourceoffice2Validate extends Validate
{

	//资管房源
	protected $rule = [
		'building_floor_height'   => 'require',
		'building_floor_heights'   => 'require',
		'office_building'   => 'require',
		'shop_type1'   => 'require',
		'shop_type'   => 'require',
		'split_up'   => 'require',
		'property'   => 'require',
		'is_register'   => 'require',
		'work_station'   => 'require',
		'start_month'   => 'require',
		'exempt_month'   => 'require|number',
		'mode_detain'   => 'require',
		'mode_pay'   => 'require',
		'architecture_rent'   => 'require',
//		'room_rate'   => 'require',
		'passenger_flow_crowd'   => 'require',
		'architecture_area'   => 'require',
		'unit_price'   => 'require',
		'usage_rate'   => 'require',
		'cubicle'   => 'require',

	];


	protected $message = [
		'building_floor_height.require' => '建筑层高不能为空',
		'building_floor_heights.require' => '总楼层不能为空',
		'office_building.require' => '写字楼装修不能为空',
		'shop_type1.require' => '写字楼等级不能为空',
		'shop_type.require' => '写字楼类型不能为空',
		'property.require' => '产权性质不能为空',
		'split_up.require' => '是否分割不能为空',
		'is_register.require' => '是否注册不能为空',
		'work_station.require' => '工位不能为空',
		'start_month.require' => '起始租月不能为空',
		'exempt_month.require' => '免租期不能为空',
		'exempt_month.number' => '免租期只能是整数',
		'mode_detain.require' => '押金不能为空',
		'mode_pay.require' => '付几个月不能为空',
		'architecture_rent.require' => '租金不能为空',
		'unit_price.require' => '单价不能为空',
//		'room_rate.require' => '得房率不能为空',
		'passenger_flow_crowd.require' => '客流人群不能为空',
		'architecture_area.require' => '建筑面积不能为空',
		'usage_rate.require' => '使用率不能为空',
		'cubicle.require' => '隔间数量不能为空',
	];

}